#!/bin/bash

echo "开始自动更新本项目..."
git pull

echo "开始自动更新依赖..."
cd Source
echo "pull SWM341_Lib..."
cd SWM341_Lib
git pull

echo "pull cBootDcl..."
cd ../cBootDcl
git pull

echo "pull lvgl..."
cd ../lvgl
git pull

echo "pull TGUI..."
cd ../TGUI
git pull

echo "pull cFonts..."
cd ../cFonts
git pull

echo "pull Flash..."
cd ../Components/Flash
git pull

echo "pull Spi..."
cd ../Spi
git pull

echo "pull LvglIcInit..."
cd ../LvglIcInit
git pull

echo "pull Usart..."
cd ../Usart
git pull

echo "pull USB..."
cd ../USB
git pull

echo "pull FatFs..."
cd ../FatFs
git pull

echo "pull CompComm..."
cd ../CompComm
git pull

echo "pull CompGUI..."
cd ../CompGUI
git pull

echo "pull CompMix..."
cd ../CompMix
git pull

echo "pull I2c..."
cd ../I2c
git pull

echo "pull eMultimedia..."
cd ../eMultimedia
git pull

echo "pull Helix..."
cd ../Helix
git pull

echo "pull TJpgDec..."
cd ../TJpgDec
git pull

echo "脚本执行完毕，按任意键继续..."
read -n 1 -s
echo
